<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!doctype >
<html style="overflow-y: hidden;">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>班级管理系统</title>
    <link rel="stylesheet" href="statics/css/bootstrap3.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/back/statics/css/bootstrap3.min.css">
    <script src="${pageContext.request.contextPath}/back/statics/js/jquery-1.8.3.min.js"></script>
</head>
<body>
<nav class="navbar navbar-default" >
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">班级管理系统</a>
        </div>
        
        <div class="navbar-collapse">

            <ul class="nav navbar-nav navbar-right">
                <c:if test="${sessionScope.user!=null}">
                    <li><a href="#">欢迎：<span class="text-danger">${sessionScope.user.name}</span></a></li>
                    <a href="${pageContext.request.contextPath}/user/logout" target="_top" type="button" class="btn btn-danger navbar-btn">退出</a>

                </c:if>

                <c:if test="${sessionScope.user==null}">
                    <a href="login.jsp" type="button" class="btn btn-primary navbar-btn" target="_top" >登录</a>
                </c:if>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
</body>
</html>

